﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace Handrise.CDCable.Business
{
    [Serializable]
    public class User
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        [EntityMapping(ColumnName = "USERNAME")]
        public string UserID { get; set; }

        /// <summary>
        /// 用户名（登录名）
        /// </summary>
        [EntityMapping(ColumnName = "USERNAME")]
        public string UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 是否登录
        /// </summary>
        [EntityMapping(ColumnName = "ISVALID")]
        public bool IsValid { get; set; }

        /// <summary>
        /// 真实姓名
        /// </summary>
        [EntityMapping(ColumnName = "REALNAME")]
        public string RealName { get; set; }

        /// <summary>
        /// 最后登录时间
        /// </summary>
        [EntityMapping(ColumnName = "LastLoginDateTime")]
        public DateTime? LastLoginDateTime { get; set; }

        /// <summary>
        /// 单位名称
        /// </summary>
        [EntityMapping(ColumnName = "UNITNAME")]
        public string UnitName { get; set; }

        /// <summary>
        /// 单位ID 
        /// </summary>
        [EntityMapping(ColumnName = "UNITID")]
        public string UnitID { get; set; }

        /// <summary>
        /// 单位编号
        /// </summary>
        [EntityMapping(ColumnName = "UNITCODE")]
        public string UnitCode { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [EntityMapping(ColumnName = "FULLUNITNAME")]
        public string Remark { get; set; }
    }
}
